# Contributor:
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rasqal
pkgver=0.9.33
pkgrel=3
pkgdesc="RDF query library"
url="https://librdf.org/"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="raptor2-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.librdf.org/source/rasqal-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--target=$CTARGET \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
05728682797470db9e51d156012e8fde9dec1554d107372faa11cbe6cdc3356e92386f4f8de6d7c41e3100b76f9b1c6809102a913829cddbd2ff29043c04d522  rasqal-0.9.33.tar.gz
"
